package crew.blt.handsound.client.webgl.element;

import crew.blt.handsound.client.webgl.property.PropertyFactory;

/**
 * 
 * SceneJS example :
 * <p>
 *	{ type : "rotate",<br/>
 *	x:1,<br/>
 *	y:1,<br/>
 *	z:1 }
 *
 * @author blt
 *
 */
public class TranslateElement extends Element {

	/**
	 * 
	 * @param id of the element
	 * @param readProperty read properties values into the SceneJS's JSON tree,<br> if <i>false</i> init values.
	 */
	public TranslateElement(String id, boolean readValues) {
		super(id);
		addProperty(PropertyFactory.createFloatProperty("x"),readValues);
		addProperty(PropertyFactory.createFloatProperty("y"),readValues);
		addProperty(PropertyFactory.createFloatProperty("z"),readValues);
	}
	
	@Override
	public String getElementType() {
		return "translate";
	}
}
